using System;
using System.ComponentModel;
using System.Globalization;

namespace WebChart
{
	public class ChartPoint
	{
		// Fields
		internal string xvalue;
		internal float yvalue;

		// Methods
		public ChartPoint()
		{
		}

		public ChartPoint(string xvalue, float yvalue)
		{
			this.xvalue = xvalue;
			this.yvalue = yvalue;
		}

		public override string ToString()
		{
			return string.Format(CultureInfo.InvariantCulture, "{0}, {1}", new object[] { this.xvalue, this.yvalue.ToString(CultureInfo.InvariantCulture) });
		}

		// Properties
		[NotifyParentProperty(true)]
		public string XValue
		{
			get
			{
				return this.xvalue;
			}
			set
			{
				this.xvalue = value;
			}
		}

		[NotifyParentProperty(true)]
		public float YValue
		{
			get
			{
				return this.yvalue;
			}
			set
			{
				this.yvalue = value;
			}
		}
	}
}
